const { BaseCommand } = require("./base");
class TitleCommand extends BaseCommand {
    async execute() {
        this.shareData.TITLE = this.content;
        // 判断是否为 windows 系统
        if (process.platform === "win32") {
            await this.forward("shell", {
                cmd: ["title", this.content],
                shell: true,
            });
        }
    }

    getRequireContent() {
        return true;
    }
}

module.exports = {
    TitleCommand,
};
